<?php
class PackageViewModel extends ViewModel {
   public $viewFields = array(
     'UserOrderDetail'=>array('order_num','item_id','_type'=>'LEFT'),
     'User'=>array('packageend', '_on'=>'UserOrderDetail.item_id=User.id'),
   );
 }